package com.gzy.android_douban.ui.me;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.gzy.android_douban.databinding.ActivityPersonalBinding;

public class PersonalActivity extends AppCompatActivity {
    ActivityPersonalBinding binding;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityPersonalBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        init();
    }

    public void init(){
            binding.iconReturn.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent =  new Intent(PersonalActivity.this,MeFragment.class);
                    finish();
                }
            });

            //“save”按钮监听事件
            binding.btnSave.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                }
            });
    }
}